package com.kevin.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kevin.service.base.BaseEntity;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * sysorg 实体类
 * @author makejava
 * @date 2023-04-06
 */
@TableName(value = "sys_org")
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class SysOrg extends BaseEntity implements TransPojo {

    /** 上级ID */
    @ApiModelProperty(value = "上级ID")
    @TableField("pid")
    private Long pid;

    /** 机构名称 */
    @ApiModelProperty(value = "机构名称")
    @TableField("name")
    private String name;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @TableField(exist = false)
    @ApiModelProperty(value = "上级名称")
    private String parentName;
}

